package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author houchengwei
 * @description 中位数
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "HEALTH.tb_data_middle")
@EqualsAndHashCode(callSuper = true)
public class DataMiddle extends BaseModel<Long> {

    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "卫星代号")
    @Column(name = "satellite_code")
    private String satelliteCode;

    @Column(name = "param_code")
    @ApiModelProperty(value = "参数代号")
    private String paramCode;

    @Column(name = "mean")
    @ApiModelProperty(value = "均值")
    private Double mean;

    @Column(name = "median")
    @ApiModelProperty(value = "中位数")
    private Double median;

    @Column(name = "quantile")
    @ApiModelProperty(value = "分位数")
    private String quantile;

    @Column(name = "range_value")
    @ApiModelProperty(value = "极差")
    private Double rangeValue;

    @Column(name = "variance")
    @ApiModelProperty(value = "方差")
    private Double variance;

    @Column(name = "standard_deviation")
    @ApiModelProperty(value = "标准差")
    private Double standardDeviation;

    @Column(name = "mse")
    @ApiModelProperty(value = "均方差")
    private Double mse;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @Column(name = "task_id")
    @ApiModelProperty(value = "子任务id")
    private Long taskId;

    @Column(name = "start_time")
    @ApiModelProperty(value = "子任务开始时间")
    private Date startTime;

    @Column(name = "end_time")
    @ApiModelProperty(value = "子任务结束时间")
    private Date endTime;

    @Override
    public Long idValue() {
        return id;
    }

}
